import http from '@/utils/request'

////获取vip产品
export let getVipProduct = ()=> http.get('/product/get_product',{
    params:{
        category_id:'20210827165510715'
    }
})


////下单 
export let order = (product_id,quantity)=> http.post('/order/pre_order',{
    product_id,
    quantity
})

////发起支付  
export let startPay = (order_id)=> http.post('/pay/payment',{
    order_id
})


////查询支付结果
export let findPayResult = (order_id)=> http.get('/order/query_order_status',{
    params:{
        order_id	
    }
})


////获取订单详情（不传参为所有订单）
export let getAllorder = (order_id = '')=> http.post('/order/get_order',{
    order_id
})


////获取登录日志
export let loginData = (page,count = 15)=> http.get('/getloginlog',{
    params:{
        page,
        count
    }
})


